home *** CD-ROM | disk | FTP | other *** search
- Path: yama.mcc.ac.uk!usenet
- From: Suresh Kannan <suresh@roja.demon.co.uk>
- Newsgroups: comp.lang.c++
- Subject: FORTRAN Array declaration and C++
- Date: 4 Mar 1996 13:52:27 GMT
- Organization: Manchester University
- Message-ID: <4hesir$2ks@yama.mcc.ac.uk>
- NNTP-Posting-Host: pcc70.li.man.ac.uk
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.22 (Windows; I; 16bit)
-
- Hi,
-
- I as an aero engineer seem to have had Fortran hardwired into my
- brain over the last 3 years of study. I am primarily like to
- program in C++ and now the new Java.
-
- I have found that the array declaration in Fortran is more
- convenient because you can do something like REAL A(-10:10), so
- the subscripts run from -10 to 10, but you can only start from 0
- in C/C++. This is pain in the butt because this more flexibility
- in subscripting is required in generating Finite Difference grids
- of aerodynamic analysis.
-
- I know that I could define a matrix/array class and constructur
- to take care of subscripting but is there any standard way that
- you boys/gals do it ??
-
-
-
- regards,
- suresh.
-
-